package third;

import java.util.Scanner;

public class five_28 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n=input.nextInt()-1;
        int c=n/100;
        int y=n%100;
        int m=13;
        int d=1;
        int w=(c/4-2*c+y+y/4+(13*(m+1)/5)+d-1)%7;
        if(w==0) System.out.println("星期天");
        else System.out.println("星期"+w);
    }
}
